<?php
@session_start();
$link=mysql_connect("localhost", "root", "");
if(!$link){

	echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['plan_id'];
$descIndustry= $_POST['desc-industry'];
$descCustomer= $_POST['desc-customers'];
$competitors= $_POST['competitors'];
$competitionAdv= $_POST['compet-adv'];
$comRegulation= $_POST['com-regulations'];



$q= mysql_query ("insert into tw_market_research(`plan_id`, `desc_industry`, `desc_customers`, `industry_competitors`, `competition_adv`, `company_regulation`)
 values ('$id', '$descIndustry', '$descCustomer', '$competitors', '$competitionAdv', '$comRegulation')");

if($q){
	$_SESSION['amr']= "success";

	header("location: ../incubatee/wizard.php#tab_tab4 ");


		
}else {
	echo mysql_error();
	//header("location: ../incubatee/wizard.php#tab_tab4");


}


?>
